package cclub.demo.utils;

public class randUtils {

    //生成一个指定长度的随机数字码
    public static String getRandCode(int codeSize){
        StringBuilder builder = new StringBuilder("");
        for(int i=0;i<codeSize;i++){
            builder.append((int)(Math.random()*10));
        }
        return builder.toString();
    }
}
